package com.example.hzzrpcclient.controller;

import com.example.hzzrpcclient.service.impl.RpcClientServiceimpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ：hzz
 * @description：TODO
 * @date ：2022/1/2 23:40
 */
@RequestMapping("/test")
@Controller
public class RpcController {


    @Autowired
    private RpcClientServiceimpl rpcClientServiceimpl;

    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        return rpcClientServiceimpl.hello();
    }
}
